/*
 *
 * @ProjectName:    my_umi_app
 * @Package:
 * @ClassName:      blog_category_api
 * @Description:    获取博客分类
 * @Author:         SuPeiSen
 * @CreateDate:     2021/2/8 10:47 上午
 * @UpdateDate:     2021/2/8 10:47 上午
 * @UpdateRemark:   更新说明：
 * @Version:        1.0
 */

import { Requests } from '@/utils/requests';
import { CategoryType } from '@/type/category';
import { ApiPath } from '@/config/api_config';

/**
 * 获取博客分类
 * @constructor
 */
export const BlogGetCategoryApi = async () => {
  return Requests.defaults.httpNo<Array<CategoryType>>(
    'get',
    ApiPath.getAllCategoryByBlog,
  );
};
